home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / dnet / dnet-snfs-sun4.lha / src / snfs.c-patch
Mailbox/MIME Entity  |  1992-11-22  |  2.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From d88-skl@nada.kth.se Sun Sep 29 01:14:45 1991", ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime application/mbox default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 64 38 38 | 2d 73 6b 6c 40 6e 61 64 |From d88|-skl@nad|
|00000010| 61 2e 6b 74 68 2e 73 65 | 20 53 75 6e 20 53 65 70 |a.kth.se| Sun Sep|
|00000020| 20 32 39 20 30 31 3a 31 | 34 3a 34 35 20 31 39 39 | 29 01:1|4:45 199|
|00000030| 31 0a 46 72 6f 6d 3a 20 | 64 38 38 2d 73 6b 6c 40 |1.From: |d88-skl@|
|00000040| 6e 61 64 61 2e 6b 74 68 | 2e 73 65 20 28 53 74 65 |nada.kth|.se (Ste|
|00000050| 6c 6c 61 6e 20 4b 6c 65 | 62 6f 6d 29 0a 4e 65 77 |llan Kle|bom).New|
|00000060| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 73 79 |sgroups:| comp.sy|
|00000070| 73 2e 61 6d 69 67 61 2e | 64 61 74 61 63 6f 6d 6d |s.amiga.|datacomm|
|00000080| 0a 53 75 62 6a 65 63 74 | 3a 20 52 65 3a 20 44 4e |.Subject|: Re: DN|
|00000090| 65 74 20 32 2e 32 30 20 | 73 6e 66 73 20 26 20 6e |et 2.20 |snfs & n|
|000000a0| 66 73 2d 68 61 6e 64 6c | 65 72 0a 44 61 74 65 3a |fs-handl|er.Date:|
|000000b0| 20 31 38 20 53 65 70 20 | 39 31 20 30 33 3a 34 38 | 18 Sep |91 03:48|
|000000c0| 3a 32 39 20 47 4d 54 0a | 52 65 70 6c 79 2d 54 6f |:29 GMT.|Reply-To|
|000000d0| 3a 20 64 38 38 2d 73 6b | 6c 40 6e 61 64 61 2e 6b |: d88-sk|l@nada.k|
|000000e0| 74 68 2e 73 65 20 28 53 | 74 65 6c 6c 61 6e 20 4b |th.se (S|tellan K|
|000000f0| 6c 65 62 6f 6d 29 0a 4f | 72 67 61 6e 69 7a 61 74 |lebom).O|rganizat|
|00000100| 69 6f 6e 3a 20 52 6f 79 | 61 6c 20 49 6e 73 74 69 |ion: Roy|al Insti|
|00000110| 74 75 74 65 20 6f 66 20 | 54 65 63 68 6e 6f 6c 6f |tute of |Technolo|
|00000120| 67 79 2c 20 53 74 6f 63 | 6b 68 6f 6c 6d 2c 20 53 |gy, Stoc|kholm, S|
|00000130| 77 65 64 65 6e 0a 0a 49 | 6e 20 61 72 74 69 63 6c |weden..I|n articl|
|00000140| 65 20 3c 34 33 32 34 36 | 39 39 37 34 40 62 6c 75 |e <43246|9974@blu|
|00000150| 65 6d 6f 6f 6e 2e 47 55 | 4e 2e 64 65 3e 2c 20 67 |emoon.GU|N.de>, g|
|00000160| 65 6f 72 67 40 62 6c 75 | 65 6d 6f 6f 6e 2e 47 55 |eorg@blu|emoon.GU|
|00000170| 4e 2e 64 65 20 28 47 65 | 6f 72 67 20 53 61 73 73 |N.de (Ge|org Sass|
|00000180| 65 6e 29 20 77 72 69 74 | 65 73 3a 0a 7c 3e 20 49 |en) writ|es:.|> I|
|00000190| 6e 20 3c 39 31 32 35 36 | 2e 31 30 31 36 33 39 33 |n <91256|.1016393|
|000001a0| 32 4b 4b 47 36 49 40 43 | 4d 55 56 4d 2e 42 49 54 |2KKG6I@C|MUVM.BIT|
|000001b0| 4e 45 54 3e 20 33 32 4b | 4b 47 36 49 40 43 4d 55 |NET> 32K|KG6I@CMU|
|000001c0| 56 4d 2e 42 49 54 4e 45 | 54 20 28 4a 69 6d 20 47 |VM.BITNE|T (Jim G|
|000001d0| 65 74 7a 69 6e 67 65 72 | 29 20 77 72 69 74 65 73 |etzinger|) writes|
|000001e0| 3a 0a 7c 3e 20 0a 7c 3e | 20 3e 48 61 73 20 61 6e |:.|> .|>| >Has an|
|000001f0| 79 6f 6e 65 20 62 65 65 | 6e 20 61 62 6c 65 20 74 |yone bee|n able t|
|00000200| 6f 20 6d 61 6b 65 20 74 | 68 65 20 6e 66 73 20 68 |o make t|he nfs h|
|00000210| 61 6e 64 6c 65 72 20 61 | 6e 64 20 73 6e 66 73 20 |andler a|nd snfs |
|00000220| 77 6f 72 6b 20 6f 6e 20 | 61 20 53 75 6e 0a 7c 3e |work on |a Sun.|>|
|00000230| 20 3e 53 70 61 72 63 3f | 20 20 20 49 27 6d 20 61 | >Sparc?| I'm a|
|00000240| 62 6c 65 20 74 6f 20 73 | 74 61 72 74 20 73 6e 66 |ble to s|tart snf|
|00000250| 73 20 69 6e 20 74 68 65 | 20 62 61 63 6b 67 72 6f |s in the| backgro|
|00000260| 75 6e 64 20 61 6e 64 20 | 73 75 63 63 65 73 73 66 |und and |successf|
|00000270| 75 6c 6c 79 0a 7c 3e 20 | 3e 6d 6f 75 6e 74 20 4e |ully.|> |>mount N|
|00000280| 46 30 3a 20 28 6f 72 20 | 4e 46 53 3a 29 20 62 75 |F0: (or |NFS:) bu|
|00000290| 74 20 77 68 65 6e 20 49 | 20 64 6f 20 61 20 64 69 |t when I| do a di|
|000002a0| 72 20 6f 6e 20 4e 46 30 | 3a 2c 20 61 6c 6c 20 49 |r on NF0|:, all I|
|000002b0| 20 67 65 74 20 69 73 20 | 6f 6e 65 0a 7c 3e 20 3e | get is |one.|> >|
|000002c0| 64 69 72 65 63 74 6f 72 | 79 20 65 6e 74 72 79 2e |director|y entry.|
|000002d0| 20 20 57 68 65 6e 20 69 | 74 20 69 73 20 61 74 20 | When i|t is at |
|000002e0| 74 68 65 20 72 6f 6f 74 | 2c 20 49 20 67 65 74 20 |the root|, I get |
|000002f0| 6c 6f 73 74 2b 66 6f 75 | 6e 64 20 6f 6e 6c 79 2e |lost+fou|nd only.|
|00000300| 0a 7c 3e 20 0a 7c 3e 20 | 59 65 73 2c 20 74 68 65 |.|> .|> |Yes, the|
|00000310| 72 65 20 77 61 73 20 61 | 20 70 72 6f 62 6c 65 6d |re was a| problem|
|00000320| 20 77 69 74 68 20 61 6c | 69 67 6e 65 6d 65 6e 74 | with al|ignement|
|00000330| 20 6f 66 20 61 20 73 74 | 72 75 63 74 27 73 20 65 | of a st|ruct's e|
|00000340| 6e 74 72 69 65 73 2c 20 | 49 20 74 68 69 6e 6b 2e |ntries, |I think.|
|00000350| 0a 7c 3e 20 0a 7c 3e 20 | 3e 49 20 63 6f 75 6c 64 |.|> .|> |>I could|
|00000360| 20 6e 6f 74 20 67 65 74 | 20 74 68 65 20 73 6e 66 | not get| the snf|
|00000370| 73 2e 63 20 69 6e 20 74 | 68 65 20 6e 6f 72 6d 61 |s.c in t|he norma|
|00000380| 6c 20 64 69 73 74 20 74 | 6f 20 63 6f 6e 6e 65 63 |l dist t|o connec|
|00000390| 74 2c 20 62 75 74 20 74 | 68 65 20 76 65 72 73 69 |t, but t|he versi|
|000003a0| 6f 6e 0a 7c 3e 20 3e 49 | 20 66 6f 75 6e 64 20 61 |on.|> >I| found a|
|000003b0| 74 20 74 68 65 20 64 6e | 65 74 2f 2e 20 6c 65 76 |t the dn|et/. lev|
|000003c0| 65 6c 20 61 6c 6c 6f 77 | 65 64 20 74 68 65 20 63 |el allow|ed the c|
|000003d0| 6f 6e 6e 65 63 74 2c 20 | 62 75 74 20 77 6f 75 6c |onnect, |but woul|
|000003e0| 64 20 67 69 76 65 20 6d | 65 0a 7c 3e 20 3e 74 68 |d give m|e.|> >th|
|000003f0| 65 20 61 62 6f 76 65 20 | 70 72 6f 62 6c 65 6d 2e |e above |problem.|
|00000400| 0a 7c 3e 20 0a 7c 3e 20 | 59 65 73 2c 20 69 6e 20 |.|> .|> |Yes, in |
|00000410| 74 68 65 20 73 6e 66 73 | 2e 63 20 61 74 20 74 68 |the snfs|.c at th|
|00000420| 65 20 64 6e 65 74 2f 2e | 20 6c 65 76 65 6c 2c 20 |e dnet/.| level, |
|00000430| 74 68 65 20 61 6c 69 67 | 6e 65 6d 65 6e 74 20 70 |the alig|nement p|
|00000440| 72 6f 62 6c 65 6d 20 77 | 61 73 20 66 69 78 65 64 |roblem w|as fixed|
|00000450| 20 62 75 74 0a 7c 3e 20 | 73 6f 6d 65 74 68 69 6e | but.|> |somethin|
|00000460| 67 20 6f 74 68 65 72 20 | 77 65 6e 74 20 77 72 6f |g other |went wro|
|00000470| 6e 67 2e 0a 7c 3e 20 0a | 7c 3e 20 3e 41 6e 79 20 |ng..|> .||> >Any |
|00000480| 73 75 67 67 65 73 74 69 | 6f 6e 73 3f 20 20 54 68 |suggesti|ons? Th|
|00000490| 61 6e 6b 73 20 69 6e 20 | 61 64 76 61 6e 63 65 21 |anks in |advance!|
|000004a0| 0a 7c 3e 20 0a 7c 3e 20 | 54 72 79 20 74 68 69 73 |.|> .|> |Try this|
|000004b0| 20 6f 6e 65 20 28 61 70 | 70 6c 79 20 69 74 20 74 | one (ap|ply it t|
|000004c0| 6f 20 74 68 65 20 6f 72 | 69 67 69 6e 69 6e 61 6c |o the or|igininal|
|000004d0| 20 73 6e 66 73 2e 63 20 | 69 6e 20 64 6e 65 74 2f | snfs.c |in dnet/|
|000004e0| 75 6e 69 78 2f 73 65 72 | 76 65 72 29 2c 20 69 74 |unix/ser|ver), it|
|000004f0| 0a 7c 3e 20 77 6f 72 6b | 73 20 66 69 6e 65 20 66 |.|> work|s fine f|
|00000500| 6f 72 20 6d 65 3a 0a 0a | 49 20 66 6f 75 6e 64 20 |or me:..|I found |
|00000510| 74 68 61 74 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |that the| origina|
|00000520| 6c 20 64 6e 65 74 2f 75 | 6e 69 78 2f 73 65 72 76 |l dnet/u|nix/serv|
|00000530| 65 72 2f 73 6e 66 73 2e | 63 20 77 6f 72 6b 65 64 |er/snfs.|c worked|
|00000540| 20 66 69 6e 65 20 6f 6e | 20 73 75 6e 33 2e 20 54 | fine on| sun3. T|
|00000550| 68 65 0a 73 6e 66 73 2e | 63 20 61 74 20 64 6e 65 |he.snfs.|c at dne|
|00000560| 74 2f 73 6e 66 73 2e 63 | 20 77 6f 72 6b 73 20 66 |t/snfs.c| works f|
|00000570| 69 6e 65 20 75 6e 64 65 | 72 20 55 6c 74 72 69 78 |ine unde|r Ultrix|
|00000580| 2e 20 54 68 65 20 70 72 | 6f 62 6c 65 6d 20 77 69 |. The pr|oblem wi|
|00000590| 74 68 20 64 6e 65 74 2f | 73 6e 66 73 2e 63 0a 69 |th dnet/|snfs.c.i|
|000005a0| 73 20 74 68 65 20 6c 74 | 6f 6e 20 61 6e 64 20 6e |s the lt|on and n|
|000005b0| 74 6f 6c 20 66 75 6e 6b | 74 69 6f 6e 73 2e 20 54 |tol funk|tions. T|
|000005c0| 68 65 79 20 61 72 65 6e | 27 74 20 70 6f 72 74 61 |hey aren|'t porta|
|000005d0| 62 6c 65 20 62 65 74 77 | 65 65 6e 20 64 69 66 66 |ble betw|een diff|
|000005e0| 65 72 65 6e 74 0a 65 6e | 64 69 61 6e 20 73 79 73 |erent.en|dian sys|
|000005f0| 74 65 6d 73 2e 20 46 6f | 72 20 73 75 6e 73 20 74 |tems. Fo|r suns t|
|00000600| 68 65 79 20 63 61 6e 20 | 62 65 20 72 65 70 6c 61 |hey can |be repla|
|00000610| 63 65 64 20 77 69 74 68 | 20 6e 75 6c 6c 20 6d 61 |ced with| null ma|
|00000620| 63 72 6f 73 2e 20 49 20 | 68 61 76 65 0a 72 65 77 |cros. I |have.rew|
|00000630| 72 69 74 74 65 6e 20 74 | 68 65 20 66 75 6e 63 74 |ritten t|he funct|
|00000640| 69 6f 6e 73 20 74 6f 20 | 66 69 6e 64 20 77 68 69 |ions to |find whi|
|00000650| 63 68 20 65 6e 64 69 61 | 6e 20 74 68 65 20 65 78 |ch endia|n the ex|
|00000660| 63 75 74 69 6e 67 20 6d | 61 63 68 69 6e 65 73 20 |cuting m|achines |
|00000670| 68 61 73 2c 20 73 6f 0a | 74 68 61 74 20 74 68 65 |has, so.|that the|
|00000680| 20 63 6f 64 65 20 77 6f | 72 6b 73 20 69 6e 20 62 | code wo|rks in b|
|00000690| 6f 74 68 20 63 61 73 65 | 73 2e 20 52 65 70 6c 61 |oth case|s. Repla|
|000006a0| 63 65 20 74 68 65 20 74 | 77 6f 20 66 75 6e 63 74 |ce the t|wo funct|
|000006b0| 69 6f 6e 73 20 69 6e 20 | 74 68 65 20 65 6e 64 20 |ions in |the end |
|000006c0| 6f 66 0a 74 68 65 20 66 | 69 6c 65 2c 20 61 6e 64 |of.the f|ile, and|
|000006d0| 20 63 6f 6d 70 69 6c 65 | 21 20 3a 29 0a 0a 20 20 | compile|! :).. |
|000006e0| 20 20 20 20 20 20 20 48 | 61 76 65 20 66 75 6e 21 | H|ave fun!|
|000006f0| 0a 0a 0a 20 20 20 20 20 | 20 53 74 65 6c 6c 61 6e |... | Stellan|
|00000700| 20 4b 6c 65 62 6f 6d 0a | 0a 2d 2d 2d 2d 2d 2d 2d | Klebom.|.-------|
|00000710| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000720| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000750| 2d 2d 2d 2d 2d 2d 0a 45 | 2d 4d 61 69 6c 3a 20 64 |------.E|-Mail: d|
|00000760| 38 38 2d 73 6b 6c 40 6e | 61 64 61 2e 6b 74 68 2e |88-skl@n|ada.kth.|
|00000770| 73 65 2c 20 6d 65 4c 61 | 7a 79 40 6c 79 73 61 74 |se, meLa|zy@lysat|
|00000780| 6f 72 2e 6c 69 75 2e 73 | 65 2c 20 6d 65 6c 61 7a |or.liu.s|e, melaz|
|00000790| 79 40 73 74 61 63 6b 65 | 6e 2e 6b 74 68 2e 73 65 |y@stacke|n.kth.se|
|000007a0| 0a 0a 0a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...*****|********|
|000007b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000007c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000007d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000007e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000007f0| 0a 6c 6f 6e 67 0a 6e 74 | 6f 6c 28 6e 29 0a 75 6e |.long.nt|ol(n).un|
|00000800| 73 69 67 6e 65 64 20 6c | 6f 6e 67 20 6e 3b 0a 7b |signed l|ong n;.{|
|00000810| 0a 20 20 20 20 75 6e 69 | 6f 6e 20 7b 20 75 6e 73 |. uni|on { uns|
|00000820| 69 67 6e 65 64 20 6c 6f | 6e 67 20 6c 3b 20 75 6e |igned lo|ng l; un|
|00000830| 73 69 67 6e 65 64 20 63 | 68 61 72 20 62 5b 34 5d |signed c|har b[4]|
|00000840| 3b 7d 20 75 3b 0a 20 20 | 20 20 75 6e 73 69 67 6e |;} u;. | unsign|
|00000850| 65 64 20 63 68 61 72 20 | 7a 3b 0a 0a 20 20 20 20 |ed char |z;.. |
|00000860| 75 2e 6c 3d 31 3b 0a 20 | 20 20 20 69 66 20 28 75 |u.l=1;. | if (u|
|00000870| 2e 62 5b 30 5d 29 20 7b | 0a 20 20 20 20 20 20 20 |.b[0]) {|. |
|00000880| 20 75 2e 6c 20 3d 20 6e | 3b 0a 20 20 20 20 20 20 | u.l = n|;. |
|00000890| 20 20 7a 20 3d 20 75 2e | 62 5b 30 5d 3b 20 75 2e | z = u.|b[0]; u.|
|000008a0| 62 5b 30 5d 20 3d 20 75 | 2e 62 5b 33 5d 3b 20 75 |b[0] = u|.b[3]; u|
|000008b0| 2e 62 5b 33 5d 20 3d 20 | 7a 3b 0a 20 20 20 20 20 |.b[3] = |z;. |
|000008c0| 20 20 20 7a 20 3d 20 75 | 2e 62 5b 31 5d 3b 20 75 | z = u|.b[1]; u|
|000008d0| 2e 62 5b 31 5d 20 3d 20 | 75 2e 62 5b 32 5d 3b 20 |.b[1] = |u.b[2]; |
|000008e0| 75 2e 62 5b 32 5d 20 3d | 20 7a 3b 0a 0a 20 20 20 |u.b[2] =| z;.. |
|000008f0| 20 20 20 20 20 72 65 74 | 75 72 6e 20 75 2e 6c 3b | ret|urn u.l;|
|00000900| 0a 20 20 20 20 7d 0a 0a | 20 20 20 20 72 65 74 75 |. }..| retu|
|00000910| 72 6e 20 6e 3b 0a 7d 0a | 0a 6c 6f 6e 67 0a 6c 74 |rn n;.}.|.long.lt|
|00000920| 6f 6e 28 6e 29 0a 75 6e | 73 69 67 6e 65 64 20 6c |on(n).un|signed l|
|00000930| 6f 6e 67 20 6e 3b 0a 7b | 0a 20 20 20 20 75 6e 69 |ong n;.{|. uni|
|00000940| 6f 6e 20 7b 20 75 6e 73 | 69 67 6e 65 64 20 6c 6f |on { uns|igned lo|
|00000950| 6e 67 20 6c 3b 20 75 6e | 73 69 67 6e 65 64 20 63 |ng l; un|signed c|
|00000960| 68 61 72 20 62 5b 34 5d | 3b 7d 20 75 3b 0a 20 20 |har b[4]|;} u;. |
|00000970| 20 20 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 20 | unsign|ed char |
|00000980| 7a 3b 0a 0a 20 20 20 20 | 75 2e 6c 3d 31 3b 0a 20 |z;.. |u.l=1;. |
|00000990| 20 20 20 69 66 20 28 75 | 2e 62 5b 30 5d 29 20 7b | if (u|.b[0]) {|
|000009a0| 0a 20 20 20 20 20 20 20 | 20 75 2e 6c 20 3d 20 6e |. | u.l = n|
|000009b0| 3b 0a 20 20 20 20 20 20 | 20 20 7a 20 3d 20 75 2e |;. | z = u.|
|000009c0| 62 5b 30 5d 3b 20 75 2e | 62 5b 30 5d 20 3d 20 75 |b[0]; u.|b[0] = u|
|000009d0| 2e 62 5b 33 5d 3b 20 75 | 2e 62 5b 33 5d 20 3d 20 |.b[3]; u|.b[3] = |
|000009e0| 7a 3b 0a 20 20 20 20 20 | 20 20 20 7a 20 3d 20 75 |z;. | z = u|
|000009f0| 2e 62 5b 31 5d 3b 20 75 | 2e 62 5b 31 5d 20 3d 20 |.b[1]; u|.b[1] = |
|00000a00| 75 2e 62 5b 32 5d 3b 20 | 75 2e 62 5b 32 5d 20 3d |u.b[2]; |u.b[2] =|
|00000a10| 20 7a 3b 0a 0a 20 20 20 | 20 20 20 20 20 72 65 74 | z;.. | ret|
|00000a20| 75 72 6e 20 75 2e 6c 3b | 0a 20 20 20 20 7d 0a 0a |urn u.l;|. }..|
|00000a30| 20 20 20 20 72 65 74 75 | 72 6e 20 6e 3b 0a 7d 0a | retu|rn n;.}.|
|00000a40| 0a 20 0a 0a | |. .. | |
+--------+-------------------------+-------------------------+--------+--------+